package com.simtop.car.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
    public static String getLocalPath(){
        Properties properties=new Properties();
        InputStream in = PropertiesUtils.class.getResourceAsStream("/path.properties");
        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties.getProperty("localPath");
    }
    public static String getNetPath(){
        Properties properties=new Properties();
        InputStream in = PropertiesUtils.class.getResourceAsStream("/path.properties");
        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties.getProperty("netPath");
    }
}
